<!DOCTYPE html>
<form class="custom-form" action="save" method="post">
	<input type="hidden" name="id" data-th-value="${model.id}">
	<input id="ct" name="parentId">
	<p><input type="text" class="easyui-textbox" name="name" data-th-value="${model.name}" data-options="label:'部门名称' ,labelAlign:'right',required:true"></p>
	<p><input type="text" class="easyui-textbox" name="manager" data-th-value="${model.manager}" data-options="label:'部门负责人' ,labelAlign:'right',required:true"></p>
</form>
<script type="text/javascript">
	$(function(){
		$('#ct').combotree({
			width:200,
			label: '上级部门',
			labelAlign: 'right',
			panelWidth: 300,
			url: 'combotree',
			value:[[${model.parent==null?'null':model.parent.id}]],
			queryParams: {nodeId:[[${model.id==null?'null':model.id}]]},
			textField: 'name'
		});
	})
</script>

